//
//  BSXPFThroughtModel.m
//  BaiSiBuDeJie
//
//  Created by XPF on 16/8/29.
//  Copyright © 2016年 tsaievan. All rights reserved.
//

#import "BSXPFThroughModel.h"

@implementation BSXPFThroughModel

+ (instancetype)throughModelWithDic:(NSDictionary *)dic{
    
    BSXPFThroughModel *model = [[BSXPFThroughModel alloc] init];
    
    [model setValuesForKeysWithDictionary:dic];
    
    
    return model;
}

+ (NSArray *)throughModelWithArray:(NSArray *)array{
    
    NSMutableArray *mtArr = [NSMutableArray arrayWithCapacity:array.count];
    
    for (NSDictionary *dic in array) {
        
        BSXPFThroughModel *model = [BSXPFThroughModel throughModelWithDic:dic];
        
        [mtArr addObject:model];
        
    }
    
    return mtArr.copy;
    
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end
